<?php
defined('IN_YuLin') || exit('NO PERMIT!');

$list = $db->getall('SELECT * FROM '.Table('user_loginlog').'');

foreach($list as $key => $val)
{
    $user = $db->getrow('SELECT * FROM '.Table('user').' WHERE id = '.$val['uid']);
    $val['username'] = $user['username'];
    $address = getaddress($val['ip']);
    $val['address'] = empty($address) ? '未知地点' : $address;
    $list[$key] = $val;
}
$tpl->display($m.'/'.$c);
